home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / GRAPHICS / DEVEL2.ZIP / USERINT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-14  |  1023 b   |  32 lines

  1. /* Header file for user-interface routines */
  2.  
  3. /* Written by Bernie Roehl, January 1992 (broehl@sunee.waterloo.edu) */
  4.  
  5. typedef struct { 
  6.     int x, y, buttons;
  7.     int cenx, ceny;
  8.     int xrange, yrange;
  9.     long scale; /* maximum acceptable returned value for X and Y */
  10.     int port;  /* port number, 0 or 1; -1 means 'unused' */
  11.     } joystick_data;
  12.  
  13. extern int joystick_check();
  14. extern void joystick_init(joystick_data *joy, int port);
  15. extern int joystick_read(joystick_data *joystick);
  16. extern void joystick_quit();
  17. extern void joystick_setscale(joystick_data *joy, int value);
  18. extern void joystick_scale(joystick_data *joy, int dir);
  19. extern void neatbox(int w, int h, int *x, int *y);
  20. extern void poptext(char *text[]);
  21. extern void popmsg(char *msg);
  22. extern unsigned askfor(char *prompt, char *buff, int n);
  23.  
  24. extern int mouse_init();
  25. extern void mouse_deinit();
  26. extern int mouse_read(int *x, int *y, unsigned *buttons);
  27. extern int mouse_hide();
  28. extern void mouse_show(int page);
  29.  
  30. /* End of userint.h */
  31.  
  32.